package com.czy.workflow.core.selector;

import com.czy.workflow.core.context.FlowContext;
import com.czy.workflow.core.exception.FlowException;
import com.czy.workflow.core.model.FlowNode;
import com.czy.workflow.core.model.TaskInfo;

import java.util.List;

public interface NodeBranchSelector {

    /**
     * 根据分支条件选择后续节点
     * @param flowContext
     * @param taskInfo
     * @return
     */
    List<FlowNode> selectNextNode(FlowContext flowContext, TaskInfo taskInfo) throws FlowException;


}
